package org.jeecg.modules.business.transfer.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.business.transfer.entity.WmsMoveReceiptMaterial;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 移库单 VO
 * @Author: jeecg-boot
 * @Date:   2023-08-11
 * @Version: V1.0
 */
@Data
@ApiModel(value="wms_move_receiptPage对象", description="移库单")
public class WmsMoveReceiptVO {

	/**主键*/
	@ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**组织*/
	@Excel(name = "组织", width = 15)
	@ApiModelProperty(value = "组织")
    private String organization;
	/**调拨类型*/
	@Excel(name = "调拨类型", width = 15, dicCode = "transfer_type")
    @Dict(dicCode = "transfer_type")
	@ApiModelProperty(value = "调拨类型")
    private String transferType;
	/**单据编号*/
	@Excel(name = "单据编号", width = 15)
	@ApiModelProperty(value = "单据编号")
    private String documentCode;
	/**单据类型*/
	@Excel(name = "单据类型", width = 15)
	@ApiModelProperty(value = "单据类型")
	@Dict(dicCode = "move_type")
	private String documentType;
	/**货主类型*/
	@Excel(name = "货主类型", width = 15, dicCode = "wms_owner_of_cargo")
    @Dict(dicCode = "wms_owner_of_cargo")
	@ApiModelProperty(value = "货主类型")
    private String ownerType;
	/**业务日期*/
	@Excel(name = "业务日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "业务日期")
    private Date businessDate;
	/**调出仓库id*/
	@Excel(name = "调出仓库id", width = 15, dictTable = "wms_basic_warehouse", dicText = "name", dicCode = "id")
    @Dict(dictTable = "wms_basic_warehouse", dicText = "name", dicCode = "id")
	@ApiModelProperty(value = "调出仓库id")
    private String transferFromWarehouseId;
	/**调出货主*/
	@Excel(name = "调出货主", width = 15)
	@ApiModelProperty(value = "调出货主")
    private String transferFromOwner;
	/**仓库组*/
	@Excel(name = "仓库组id", width = 15)
	@ApiModelProperty(value = "仓库组id")
	@Dict(dictTable = "wms_basic_warehouse_group", dicText = "name", dicCode = "id")
    private String wmsBasicWarehouseGroupId;
	/**仓管员*/
	@Excel(name = "仓管员", width = 15)
	@ApiModelProperty(value = "仓管员")
    private String warehouseKeeper;
	/**调出部门*/
	@Excel(name = "调出部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
	@ApiModelProperty(value = "调出部门")
    private String transferFromDepartment;
	/**单据状态*/
	@Excel(name = "单据状态", width = 15)
	@ApiModelProperty(value = "单据状态")
    private String documentStatus;
	/**备注*/
	@Excel(name = "备注", width = 15)
	@ApiModelProperty(value = "备注")
    private String remark;
	/**逻辑删除*/
	@Excel(name = "逻辑删除", width = 15)
	@ApiModelProperty(value = "逻辑删除")
    private Integer delFlag;
	/**租户id*/
	@Excel(name = "租户id", width = 15)
	@ApiModelProperty(value = "租户id")
    private Integer tenantId;
	/**是否有子数据*/
	@Excel(name = "是否有子数据", width = 15)
	@ApiModelProperty(value = "是否有子数据")
    private Integer hasChild;
	/**调拨入库任务id*/
	@ApiModelProperty(value = "调拨入库任务id")
	private String inTaskId;
	/**来源系统*/
	@Excel(name = "来源系统", width = 15)
	@ApiModelProperty(value = "来源系统")
	private String originalSystem;
	/**来源单据*/
	@Excel(name = "来源单据", width = 15)
	@ApiModelProperty(value = "来源单据")
	private String originalSystemNumber;
	/**
	 * 备料/退料区域
	 */
	@ApiModelProperty(value="备料/退料区域")
	private String materialArea;
	/**
	 * 备料/退料站点
	 */
	@ApiModelProperty(value="备料/退料站点")
	private String materialSite;

	/**调拨任务id*/
	@ApiModelProperty(value = "调拨任务id")
	private String deliveryTaskId;

	/**调拨出库任务id*/
	@ApiModelProperty(value = "调拨出库任务id")
	private String deliveryOutTaskId;

	/**调拨入库任务id*/
	@ApiModelProperty(value = "调拨入库任务id")
	private String deliveryInTaskId;


	@ExcelCollection(name="移库单-物料")
	@ApiModelProperty(value = "移库单-物料")
	private List<WmsMoveReceiptDetailVO> wmsMoveReceiptMaterialList;

}
